I think this looks good
return conditionA ? a : conditionB ? b : conditionC ? c : default;
In your context:
return foo ? 1 : bar ? 2 : 3;
Lining up the variables would look nice too