Please do not be rude.
We are not going to do your work for you, but we can help you understand how to do it yourself.
A quick search of the Ruby API category brings up this prior thread with code samples:
3d text appears to ignore z parameter - #8 by DanRathbun
You might also learn from reading the code of @thomthom’s 3D Text Editor extension:
http://extensions.sketchup.com/en/content/3d-text-editor