Ignore rude comments or discipline?

My two and a half year old has been saying some rude comments lately which he has learnt off his older comments.

He says to his dad and I, “go away”, “stop it” while trying to push us. At first we would say no that’s not nice, no pushing, etc. But how do we make the comments go away? Do we ignore it? How do you discipline your young toddler? My husband thinks if we ignore it, he will stop. But he says it constantly throughout the day, it’s becoming quite frustrating. How do you handle your small toddlers verbal defiance?