Assuming that bar is an alias for someCommand -flag1.

Type bar on the command line and then press Ctrl+alt+e

you’ll get someCommand -flag1 where bar was standing.