Screenshot only the GUI and not any 3d scene objects

Is it possible to easily screenshot only the GUI, or to have all scene objects not render?

You can use the layer.

For instance, you can set your object to any layer and then set the culling mask of the camera to render or not.