Invoke ruby via Chef

The tools included to your ChefDK are added to your PATH most often out of the box when you install it. Ruby is installed in embedded context what is separate from your systems Ruby which means that it actually includes an embedded version of Ruby.

chef exec ruby -v
If you want to extend the Chef functionality into your ChefDK, you often install Ruby gem - a Ruby library to do this. Invoke the gem command like this:
chef exec gem -v