When I run code below it raise error:
implicit argument passing of super from method defined by define_method() is not supported. Specify all argument
The error message is quite descriptive. You need to explicitly pass arguments to super when you call it inside of define_method block:
super
define_method
mem[args] = super(*args)