VR raycast problem

How can I create a situation like the image with simple code? I want to have a tooltip po up, when I hover over an object that shows some messages about that object.

Start with the basics, like the VR pathway on Unity learn.
You can probably use the ray interactor combined with the on hover event with XRIT