As Ryan said you can solder it (either with soft solder or silver solder use flux will make your life easier to) or you can just use a rubber repair on it either buying a propritory type or just making it your self out of a piece of rubber and a couple of hose clamps.
This is a plumb-quik from Fernco
Keep in mind that you don't have to use the whole thing you can cut it open so it is easy to slide over the pipe and put the cut at the top of the copper pipe then put your hose clamps on and tighten it up . I've used this technique to repair a 6" stormwater pipe that was cracked and was a pressurized pipe with no problem.
Another easy way is to use Ferropre or similar a two part epoxy that sets like a rock and sticks to pretty much anything
If you are going to use Ferropre put on disposable gloves, get a bucket of water and mix the two parts together in the water it makes it much easier to handle as it doesn't stick to your gloves as much then once mixed just smear it over the holes in the pipe.
I'd use a small tubing cutter to cut tidy/clean ends on both ends of the 1/4" copper pipe ...
... cutting off whatever portions of the 1/4" copper pipe are kinked or deformed. I'd then slip on a compression fitting called a 'union' ...
... which requires tightening with a pair of wrenches. Wikipedia has a general article on compression fittings here. You-tube hosts a concise 3 minute how-to video regarding installing compression fittings on plastic or copper pipe. The copper tubing portion of the demo starts at 1:45 ...
http://www.youtube.com/watch?v=eQGL8MBLlaE
Small tubing cutters such as the one pictured above will cut diameters 1/4", 1/2" and 3/4" and anything in between. The small size of that cutter design makes it excellent for tight confines. It would be the first one I'd buy for my tool box. You could also use a medium size cutter, such as the one used in this 90 second tutorial ...
http://www.youtube.com/watch?v=nLB3MomrXd0
The small cutter works in the same way. There are two main points to keep in mind when using either of these tubing cutters ...
1) Tighten the cutter only a little bit each time, making a number of light scores around the pipe instead of several deep ones.
2) The cutter wheel needs to continually track in the previous score, so keep a close eye on the score and make sure the score is not spiraling along the length of the 1/4" copper pipe, which can happen if the pipe is bent or deformed in the area where the cutter is being used.
After the cuts are completed, the cut ends of the 1/4" pipe need to be very close to circular (for example, not deformed into an oval). If they are not circular, then even if the ferrules can be forced onto the 1/4" copper pipe, the fitting will leak. If the ferrules do not slip on easily, it might be due to the ends of the 1/4" pipe being out-of-round, or (unlikely) due to defective ferrules. Using a tubing cutter will help ensure the cut ends of the 1/4" copper pipe are circular.
Alternatively, a hacksaw (or similar) can be used to cut clean ends on the 1/4" pipe. This will likely result in ends with sharp edges and a burr. Remove these with sandpaper. Clean ends will allow the ferrules slip on without gauging, which would lead to a leak. A fine-toothed file can be used instead of sandpaper, but the copper dust/shavings will most likely clog the teeth of the file.
Here is a 7 minute how-to video from England regarding leaks at compression fittings:
http://www.youtube.com/watch?v=aez4ctMtbuI
Best Answer
It's a flow restrictor. They are usually installed in shower heads or other types of plumbing fixtures. It was probably left in a tool box and found it's way into the pipe or was intentionally not installed... I hated those things.