Invokes a method with two parameters