Use define_method instead of class_eval & string.

This will make it easier to introduce a check at invocation time which compares
the number of arguments passed into the stubbed method and the "arity" of the
original method implementation.