re-execute

Substitute in last command and execute

echo "foo"
!!:s/foo/bar/