Rangers' reward for knocking holders Queen of the South out of the Ramsdens Cup is a semi-final showdown against League One rivals Stenhousemuir.