Do following, originally found here.
brew install chruby ruby-install xz
ruby-install ruby 3.2.3
echo "source $(brew --prefix)/opt/chruby/share/chruby/chruby.sh" >> ~/.zshrc
echo "source $(brew --prefix)/opt/chruby/share/chruby/auto.sh" >> ~/.zshrc
echo "chruby ruby-3.2.3" >> ~/.zshrc # run 'chruby' to see actual version
bundle
bundle exec jekyll serve --drafts --livereload