Ruby 3.3 リファレンスマニュアル

instance method Symbol#inspect

inspect -> String[permalink][rdoc][edit]

自身を人間に読みやすい文字列にして返します。

p :fred.inspect #=> ":fred"