rb-trace adds a trace_hook object, translates hooks bitmasks to sets and vice versa, and extends set_trace_func to ignore frames or functions.
R. Bernstein
gem "rb-trace", "~> 0.4"