If you just want to use the bar
method given the condition being met
def foo
if 'XYZ'
bar
else
render 'view'
end
end
This would run the bar
method and make use of any redirect you have in there. It is more likely that you want to reexamine what it is you are trying to achieve.
If you can give more specifics then you will get a better answer.