Have you ever tried to place a spot slope dimension on ramp in Revit?
You cannot place it on ramps because of some reasons, then how could it be achieved in Revit?
Place a spot slope on a sloped floor first, and move or copy/paste it to a ramp. Then, the slope will show up correctly.
Use a sloped floor instead of a ramp.