Back then macOS as a platform was quite polyglot with multiple scripting languages and bindings/bridges to ObjC. Being an OOTB dev box was a feature, notably with Web 2.0, and there was Rails right there as well as Apache too, and a thing called Mac OS X Server. IIRC they even had Java in there, with WebObjects, until the Oracle debacle.
Today on Tahoe, this is what remains:
$ uname -sr
Darwin 25.0.0
$ /usr/bin/ruby --version
ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin25]
$ /usr/bin/bundle --version
Bundler version 1.17.2
$ /usr/bin/gem --version
3.0.3.1
$ /usr/bin/rails
Rails is not currently installed on this system. To get the latest version, simply type:
$ sudo gem install rails
You can then rerun your "rails" command.
$ perl -v
This is perl 5, version 34, subversion 1 (v5.34.1) built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)
$ python3 --version
Python 3.9.6
One can note the irony of the most up to date of those being Perl, probably a testament to its insane backwards compatibility.