(Works around https://github.com/rubinius/rubinius/issues/2248)
I considered calling redefine source=, but Pry::Method objects are not designed to be mutable.