[Truffle] Allow passing the calling self explicitly into dispatch so we don't depend on a Ruby frame being available.

Cherry-pick of 44f2d7f on truffle-interop by Matthias Grimmer.