When I type pry -v I get
Pry version 0.12.2 on Ruby 2.3.0
whereas ruby -v gives
ruby 2.6.0rc2 (2018-12-15 trunk 66408) [x86_64-linux]
and rbenv global and rbenv local both give
2.6.0-rc2.
I tried uninstalling and reinstalling pry as suggested in an answer to how to change ruby version in Pry.
which pryfor one will tell you wherepryis coming from. You may want togem install pry.which prypoints to a bash script at~/.rbenv/shims/pry. Pry should be taking its cues from rbenv.rbenvseems to be letting you down.