YARV already has flags to see if methods are redefined (used for fast numeric operations). Maybe you could use them? See vm_init_redefined_flag(void) in vm.c.