This is different than the Developer Menu, which is enabled via the Safari Preferences window - this enables several rendering debug options.
In order to enable the menu, close Safari, then enter the following command in a terminal window:
defaults write com.apple.Safari IncludeInternalDebugMenu 1