Thanks to @indirect’s help, I’m back up and running.
Turns out there’s that directory /Library/Ruby/Gems/2.6.0/specifications/default
. It contains a couple of gemspecs you really can’t (and shouldn’t ever) delete.
With the default gemspecs back in place, I was able to apply the fiddle hack mentioned below, and got Homebrew working again.