What does this joke mean?

When mandy is on bedrest and Mary comes in and asks if meemaw needs the bathroom she said "depends" followed by its a joke. What does she mean by that and is it actually a joke?