(maint) Add debugging when loading ruby dynamic library

Oh ha ha, of course, I didn't look around enough. So could use some rewording if we decide to keep it in at all.