Do the Trick

What does the idiom “do the trick” mean?

Definition: be effective, work

Example: Is the oil drain plug bolt on your car stuck? Warm up the car, and then try to remove it. That’ll usually do the trick.