You can change the settings of the Ruler in the Ruler preferences via the Settings Preferences menu, via the Ruler tool context menu, or via the Ruler context menu in the scene.
To access the Ruler preferences, do either of the following:
Ruler tool context menu
Ruler preferences
To change the Ruler default settings via the Viewer window: