Then drag and click to place the cube.
While dragging the cube it will be shown with default dimensions. You can change those dimensions while dragging by hitting the Tab key. This will bring up a Tool Options dialog where the dimensions can be edited.
After entering new values and hitting OK, the cube will be displayed with the new dimensions.