macro for logging calls to methods