Log the method call.