環境は Intel Mac + Monterey です。
$ brew upgrade ruby-build
$ brew install openssl@3 readline libyaml gmp rust
$ RUBY_CFLAGS="-w" LDFLAGS="-L/usr/local/opt/openssl@3/lib" RUBY_CONFIGURE_OPTS="--disable-shared --with-openssl-dir=$(brew --prefix openssl@3)" rbenv install 3.3.0-preview1
$ RUBYOPT=--yjit ~/.rbenv/versions/3.3.0-preview1/bin/ruby -e 'p RubyVM::YJIT.enabled?'
true
$ RUBYOPT=--yjit ~/.rbenv/versions/3.3.0-preview1/bin/irb