Booleans. Polygons>Boolean>Difference. You may have to subdivide your cube a few times to get good results though. Oh, and your text has to be 3D and not flat.