Implement a simple stub feature to use in the Time travel helpers
Alias the original method first to avoid warnings
Use instance method instead of before hook
Change the class and method visibility
Store the singleton_class in a local variable
Use each_value
Merge pull request #13883 from rafaelfranca/rm-time-travel

Alternative implementation to make time travel not dependent on mocha