The item ID for Ruby in Subnautica is:
aluminumoxide
Al₂O₃. Hard, conductive gemstone composed of aluminum oxide.
The spawn code for this item is:
spawn aluminumoxide
The item command will add this item to your character's inventory. The item command for Ruby is:
item aluminumoxide